package top.infopub.mgr.bpa.service;

import com.github.pagehelper.Page;
import top.infopub.dto.bpa.PrimarySureDto;
import top.infopub.generic.GenericService;
import top.infopub.mgr.bpa.domain.DeviceSureDomain;
import top.infopub.mgr.bpa.vo.DeviceSureVo;
import top.infopub.model.bpa.DeviceSure;
import top.infopub.model.bpa.DeviceSureAtt;
import top.infopub.model.bpa.DeviceSureDetail;

import java.util.List;

public interface DeviceSureService extends GenericService<DeviceSure, String> {

    /**
     * 根据条件查询分页数据
     * @param page
     * @param deviceSureVo
     * @return 
     * @see
     */
    Page<DeviceSureDomain> selectPageByDomainWhere(Page<DeviceSureDomain> page,
                                                   DeviceSureVo deviceSureVo);

    /**
     * 根据条件查询-我审批的分页数据
     * @param page
     * @param deviceSureVo
     * @return 
     * @see
     */
    Page<DeviceSureDomain> selectMyCheckByDomainWhere(Page<DeviceSureDomain> page,
                                                      DeviceSureVo deviceSureVo);

    /**
     * 新增记录
     * @param deviceSure
     * @param deviceSureDetails
     * @param deviceSureAtts 
     * @see
     */
    void save(DeviceSureVo deviceSure, List<DeviceSureDetail> deviceSureDetails,
              List<DeviceSureAtt> deviceSureAtts);

    /**
     * 查询详情数据
     * @param id
     * @return 
     * @see
     */
    DeviceSureVo queryById(String id);

    String insertById(PrimarySureDto primarySureDto,String creator);

    void updateByIdSelective(PrimarySureDto primarySureDto, String modifier);


}